package com.deryun.tyl.dao.impl;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;

import com.deryun.tyl.bean.IndexImage;
import com.deryun.tyl.bean.mapper.IndexImageMapper;


public class IndexImageDaoImpl extends SqlSessionDaoSupport {
	
	@Autowired
	private IndexImageMapper imageMapper;
	
	public int updateIndex(IndexImage image){
		return imageMapper.updateIndex(image);
	}
	
	public List<IndexImage> getAll(){
		return imageMapper.getAll();
	}
	
	public List<IndexImage> getKuaiXun(){
		return imageMapper.getKuaiXun();
	}
}
